package com.smforj.ssm.modules.lib.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smforj.ssm.frame.core.enums.JDataSource;
import com.smforj.ssm.modules.eslib.domain.vo.LibBookVo;
import com.smforj.ssm.modules.eslib.service.LibBookService;
import com.smforj.ssm.modules.lib.dao.LibBookDao;

/****
 *
 *
 * @author Haijun Gao 
 * @date 2017-11-17 下午2:21:55
 * @desp http://www.cnblogs.com/saga5998/
 * @email 573107773@qq.com
 */
@Service("sysBookService")
@JDataSource("sdefault")
public class SysBookServiceImpl implements LibBookService {
    @Autowired
    private LibBookDao bookDao;

    @Override
    public LibBookVo getBookBytstm(String tstm) {
        long startTime = System.currentTimeMillis();//获取当前时间
        System.out.println("begin：" + startTime);
        //doSomeThing();   //要运行的java程序
        LibBookVo bv = bookDao.getBookBytstm(tstm);
        long endTime = System.currentTimeMillis();
        System.out.println("程序运行时间：" + (endTime - startTime) + "ms");
        return bv;
    }


}
